'use strict';

const Controller = require('egg').Controller;

class DpartController extends Controller {
  async getDparts() {
    const { ctx, service } = this;
    const dparts = await service.dpart.getDparts();
    ctx.body = {
      dparts,
    };
  }
}

module.exports = DpartController;
